<template>
	<web-view :src="srcUrl"></web-view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	export default {
		data() {
			return {
				srcUrl: ''
			}
		},
		computed: {
			...mapState(['userInfo'])
		},
		onLoad(option) {
			if (option.src) {
				const url = decodeURIComponent(option.src)
				if (url === 'zwcx' && option.result) {
					this.srcUrl = `https://ym.707315.cn/upload/page/luodiye.html?phone=${this.userInfo.mobile}&info=1&gcCode=${option.result}&appId=wx0a786b427907c136&appSecret=1f7695ba8da15f6f7e29f3b5862d99d8
`
					return
				}
				this.srcUrl = url
			}
		}
	}
</script>

<style>
</style>